<script setup lang="ts">
defineOptions({
  name: "baseInfoTable"
});

import { ref, inject } from "vue";
import { detectorIsolateTypeMap } from "@/views/gas/utils";

const detailData = inject("detailData", ref<Record<string, any>>({}));
</script>

<template>
  <px-descriptions :column="3" border>
    <px-descriptions-item label="工单号" label-align="right">{{ detailData?.workOrderNo || "--" }}</px-descriptions-item>
    <px-descriptions-item label="隔离类型" label-align="right">{{ detectorIsolateTypeMap.get(detailData?.taskType) || "--" }}</px-descriptions-item>
    <px-descriptions-item label="施工位置" label-align="right">{{ detailData?.location || "--" }}</px-descriptions-item>
    <px-descriptions-item label="开始时间" label-align="right">{{ detailData?.startTime || "--" }}</px-descriptions-item>
    <px-descriptions-item label="结束时间" label-align="right">{{ detailData?.endTime || "--" }}</px-descriptions-item>
    <px-descriptions-item label="备注" label-align="right">{{ detailData?.remark || "--" }}</px-descriptions-item>
  </px-descriptions>
</template>
